import time

start_time = time.time()

# Python代码放置在此处

end_time = time.time()
total_time = end_time - start_time
print(f"The script took {total_time} seconds to execute.")